package com.ithema.web;

import com.ithema.config.SpringConfiguration;
import com.ithema.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;


public class UserController {
    public static void main(String[] args) {
        //ApplicationContext app =new ClassPathXmlApplicationContext("applicationContext.xml");
       ApplicationContext app =new AnnotationConfigApplicationContext(SpringConfiguration.class);
        UserService userService = app.getBean(UserService.class);
        userService.save();
    }
}
